FROM java:latest

MAINTAINER chengcheng

VOLUME /tmp

ADD turbine-server-0.0.1.jar app.jar

RUN sh -c 'touch /app.jar'

RUN echo 'Asia/Shanghai' > /etc/timezone

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

EXPOSE 11030

ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
